package com.yidu.drug.service;

import java.util.List;
import java.util.Map;

import com.yidu.drug.model.QualityTestingModel;
import com.yidu.drug.model.QualityTestingModelVo;

public interface QualityTestingModelService {
	
	int deleteByPrimaryKey(String qtId);

    int insert(QualityTestingModel record);

    int insertSelective(QualityTestingModel record);

    QualityTestingModel selectByPrimaryKey(String qtId);
  
    int updateByPrimaryKeySelective(QualityTestingModel record);

    int updateByPrimaryKey(QualityTestingModel record);
    
    /**
     * 质检表质检修改
     * @param record
     * @return
     */
    String update(QualityTestingModel record);
    
    /**
     * 质检总表修改
     * @param record
     * @return
     */
    String updateTwo(QualityTestingModel record);
    
    /**
	 * 根据采购订单ID(业务ID)查询出采购明细中的所有信息
	 */
    List<QualityTestingModel> findByfdPwId(String pwId);
  
    /**
	 * 查询总行数
	 */
	public Long findRows(QualityTestingModel record);

	/**
	 * 查询所有管理人员数据
	 */
	public List<QualityTestingModel> findAllQualityTestingModel(QualityTestingModel record);

	/**
	 * 根据ID查询
	 */
	public QualityTestingModel findById(String picId);
	
   Map<String,Object> findAll(QualityTestingModel record);
}
